//
//  TSJSPatchManager.m
//  TSProfitProject
//
//  Created by 节点传递 on 2019/11/25.
//  Copyright © 2019 TMS. All rights reserved.
//

#import "TSJSPatchManager.h"
#import "JSPatchPlatform/JSPatch.h"
#import "JSPatchPlatform/JPEngine.h"

@implementation TSJSPatchManager

+ (void)jsPatchSetup:(id)option {
    [self setupJSPatch];
}

+ (void)setupJSPatch {

#ifdef DEBUG
    [JSPatch testScriptInBundle];
#else
    [JSPatch startWithAppKey:@"e41985e13c9baf12"];
    [JSPatch setupRSAPublicKey:@"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC/I4gn03LD+BYyqFcfK6GqdzdP\nMZaTV/hD6DDc7euUZEk66LbWHqJD0Z0dv9UZ5+v3ooRmImQiXJm7tStd386ddc1N\nrT4rPZxzaL+PiYMmp5Ww+GtaOVUdVoU0JoBv+Nr2VsV/lVYARPr/Ks8tHo37wkaC\nM5GNLu27n/klTulMiQIDAQAB\n-----END PUBLIC KEY-----"];
    [JSPatch sync];
#endif
}
@end
